Skip to content

Update: Add JSDoc documentation for navigation system (fixes #855)#865

Open
joe-replin wants to merge 1 commit into
masterfrom
issue/855
Open

Update: Add JSDoc documentation for navigation system (fixes #855)#865
joe-replin wants to merge 1 commit into
masterfrom
issue/855

Conversation

@joe-replin

Copy link
Copy Markdown
Contributor

Fixes #855

Update

  • navigation.js — Added @file/@module header and documented addNavigationBar() with @fires navigation:initialize
  • models/NavigationModel.js — Added @file/@module header and @class describing layout config properties
  • models/NavigationButtonModel.js — Added @file/@module header and @class describing button config properties
  • views/navigationView.js — Added @file/@module header with usage example; documented buttons, start(), sortNavigationButtons(), hideNavigationButton(), showNavigationButton(), addButton(), getButton(), and removeButton()
  • views/NavigationButtonView.js — Added @file/@module header; documented initialize(), static get template, changed(), triggerEvent() with @fires tags for all five built-in navigation events, and remove()

Testing

  1. Build the framework and open a course in a browser
  2. Confirm the navigation bar renders and back/home buttons appear on non-root pages
  3. Verify clicking navigation buttons (back, home, skip) triggers the expected behaviour
  4. Confirm no console errors are introduced by the documentation changes

Add file- and class-level JSDoc, method docs, and small inline descriptions across the navigation subsystem. Updated files: js/models/NavigationButtonModel.js, js/models/NavigationModel.js, js/navigation.js, js/views/NavigationButtonView.js, and js/views/navigationView.js. Documents include controller bootstrap behaviour, view lifecycle (initialize, template, changed, triggerEvent, remove), button management (add/get/remove, sorting, injected button handling), and usage examples. These changes improve code discoverability and clarify expected behaviour; no functional logic changes were introduced.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Needs Reviewing

Development

Successfully merging this pull request may close these issues.

JSDocs - Navigation System

1 participant